Add C# lock-free shared-memory store profile (v2.0.0) - #6
Merged
Conversation
rantri
marked this pull request as ready for review
July 16, 2026 11:46
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
MemoryStorefacade, Legacy default profile, layout 1.2 behavior, status numbers, and bounded cold-lifecycle OS coordination2.0.0; native CMake and Python remain independently versioned0.1.0and deliberately reject layout 2.0Why
The Legacy profile acquires a named cross-process semaphore on each store operation. Under multi-process load this serializes otherwise independent operations and makes one delayed process affect all peers. The new profile removes OS synchronization from steady-state publish, acquire, release, remove, and maintenance paths while keeping SharedMemoryStore a bounded general-purpose key-value store. Broker scheduling and load balancing remain outside the library.
Compatibility and rollout
SharedMemoryStoreOptions.CreateLockFree(...).Validation
SharedMemoryStore.2.0.0.nupkgand symbol package successfullyLinux x64 eight-process results on the frozen source tree:
Qualification caveat
The deliberately exhaustive terminal release tier was stopped because its repeated multi-hour matrix was not suitable as a blocking developer gate. It did not produce a final release summary, so this PR does not claim formal exhaustive-release qualification. The completed PR, nightly, Linux, full-suite, package, and review evidence supports implementation review and a controlled C# x64 rollout; repository CI should still run on this PR.